﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace WindowsGameAula02
{
    class Asteroid: Scene
    {

        AnimatedObject2D zero;

        public Asteroid()
        {

        }
        
        public override void Load(ContentManager Content, Vector2 window)
        {
            
            Animation[] animations = new Animation[1];
            animations[0].currentFrame = Vector2.Zero;
            animations[0].FrameSize = new Vector2(60, 50);
            animations[0].startPosition = Vector2.Zero;
            animations[0].TotalFrames = new Vector2(4, 0);
            animations[0].FrameRate = 20000;
            zero = new AnimatedObject2D(Content.Load<Texture2D>("zeroNotDone"), Vector2.Zero, animations);
        }

        public override void Update(GameTime gameTime)
        {
            zero.Update(gameTime);
        }

        public override void Draw(SpriteBatch spriteBatch, GameTime gameTime)
        {
            zero.Draw(spriteBatch, gameTime);
        }
    }
}
